Feature: Editing Churches
  In order to update church information
  As a user
  I want to be able to do that through an interface
  
  Background:
    Given there is a church called "My Church"
    And I am on the homepage
    When I follow "Admin"
    When I follow "Churches"
    When I follow "My Church"
    And I follow "Edit"

  Scenario: Updating a church
    And I fill in "Name" with "My New Church"
    And I press "Submit"
    Then I should see "Church was successfully updated."
    Then I should be on the church page for "My New Church"
    
  Scenario: Updating a church with invalid attributes is bad
    And I fill in "Name" with ""
    And I press "Submit"
    Then I should see "Correct the following errors and try again."
    And I should see "Name can't be blank"
